package com.example.basicsecurity.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import static com.example.basicsecurity.constant.Constant.LOGIN_PAGE;

/**
 * @author 罗俊华
 * @date 2021/11/9 - 2:58 下午
 */
@Slf4j
//@Controller
public class WebMvcConfig extends WebMvcConfigurationSupport {

   /* @Override
    protected void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController(LOGIN_PAGE)
                .setViewName("loginPage");
    }*/
}
